package com.baturu.vin.ford.dto;

import com.baturu.vin.base.dto.BaseVinAnalyseResultDTO;
import com.baturu.vin.ford.dal.entity.FordV2CarTypeDetailEntity;
import com.google.common.collect.Lists;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldDefaults;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

@EqualsAndHashCode(callSuper = false)
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class FordV2VinAnalyserResultDTO extends BaseVinAnalyseResultDTO {
    String id;
    String vinCode;
    Integer lessInfo;
    String country;
    String date;
    String carType;
    String carBody;
    String ver;
    String engine;
    String transmission;
    String driven;
    String carradio;
    String displacement;
    String airc;
    String area;
    String carOilColor;
    String enviroment;
    String trim;
    String carTypeArea;
    CarTypeDetail carTypeDetail;
    String engineDetail;
    List<FordV2SGroupDTO> subGroupList;

    /**
     * 次要信息
     */
    List<String> lessInfoList;

    /**
     * 车型信息
     */
    FordV2CarTypeDetailEntity fordV2CarTypeDetailEntity;

    public List<String> getCondition(){
        return Lists.newArrayList(carType,carBody+"0",ver+"0",engine,transmission+"0",StringUtils.replace(driven, " ", "0")+"0",airc.replaceAll(" ", "0")+"0",area+"0",carradio,displacement,carOilColor);

    }

}
